package com.kingdee.pda.entity;

import com.google.gson.Gson;

import java.util.List;

public class ReplenishCommitBean {

    private List<DataBean> data;

    private String type;

    public String getType() {
        return type == null ? "" : type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    /**
     * billId : 1180578807560819712
     * itemskuId : 1165837695834976256
     * inlocationId : 1159240261918858240
     * outLocationId : 1159240261918858240
     * qty : 1
     */
    public static class DataBean {
        private long billId;
        private long itemskuId;
        private long inLocationId;
        private long outLocationId;
        private int qty;
        private long invStatusId;//库存状态id
        private String invStatusName;//库存状态

        public DataBean(long billId, long itemskuId, long inlocationId, long outLocationId, int qty,long invStatusId) {
            this.billId = billId;
            this.itemskuId = itemskuId;
            this.inLocationId = inlocationId;
            this.outLocationId = outLocationId;
            this.qty = qty;
            this.invStatusId = invStatusId;
        }

        public long getInvStatusId() {
            return invStatusId;
        }

        public void setInvStatusId(long invStatusId) {
            this.invStatusId = invStatusId;
        }

        public String getInvStatusName() {
            return invStatusName == null ? "" : invStatusName;
        }

        public void setInvStatusName(String invStatusName) {
            this.invStatusName = invStatusName;
        }

        public long getBillId() {
            return billId;
        }

        public void setBillId(long billId) {
            this.billId = billId;
        }

        public long getItemskuId() {
            return itemskuId;
        }

        public void setItemskuId(long itemskuId) {
            this.itemskuId = itemskuId;
        }

        public long getInlocationId() {
            return inLocationId;
        }

        public void setInlocationId(long inlocationId) {
            this.inLocationId = inlocationId;
        }

        public long getOutLocationId() {
            return outLocationId;
        }

        public void setOutLocationId(long outLocationId) {
            this.outLocationId = outLocationId;
        }

        public int getQty() {
            return qty;
        }

        public void setQty(int qty) {
            this.qty = qty;
        }
    }

    @Override
    public String toString() {
        return new Gson().toJson(this);
    }
}
